<?php
global $_RQ,$_AR;
//判断是否来自场景体,底部菜单不变
if($_RQ['plugin_name']){
	$this->session('plugin_name',$_RQ['plugin_name']);
}
$plugin_name=$this->session('plugin_name')?$this->session('plugin_name'):'';
if($_RQ['is_access'] && ($_RQ['onemerchid'] || $_RQ['merchid'])){
	if($_RQ['onemerchid'] || $_RQ['merchid']){
		$_SESSION['onemerchid']=$_RQ['onemerchid']?:$_RQ['merchid'];
		
	}
}
if($_SESSION['onemerchid']){
	$this->setting=$this->plugin_setting('basic'.$_SESSION['onemerchid']);
}else{
	$this->setting=$this->plugin_setting('basic');
}
$return['pluginset']=$this->setting?:$this->plugin_setting('basic');
$_SESSION['onemerchid']=$_SESSION['onemerchid']?:0;
?>